package com.peihua.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("user_addresses")
public class Addresses implements Serializable {
    @TableId(value = "address_id", type = IdType.AUTO)
    private Integer addressId;

    @TableField("user_id")
    private Integer userId;

    @TableField("recipient_name")
    private String recipientName;

    @TableField("phone_number")
    private String phoneNumber;

    @TableField("address_line1")
    private String addressLine1;

    @TableField("address_line2")
    private String addressLine2;

    @TableField("tag")
    private String tag;

    @TableField("is_default")
    private Integer isDefault;

    @TableField("created_at")
    private LocalDateTime createdAt;
}